package cn.legend.travel.admin.destination.dao.persist.repository;

import cn.legend.travel.admin.destination.pojo.entity.District;
import cn.legend.travel.admin.destination.pojo.param.DistrictAddNewParam;
import cn.legend.travel.admin.destination.pojo.vo.DistrictAdminVO;
import cn.legend.travel.common.pojo.po.DistrictSimplePO;
import cn.legend.travel.common.pojo.vo.PageData;

import java.util.List;

public interface IDistrictRepository {

    List<DistrictSimplePO> getByParent(long pId);

    int delete(Long id);

    PageData<DistrictAdminVO> listByParent(Long pId, Integer pageNum, Integer pageSize);

    int updateById(District district);

    int addNew(DistrictAddNewParam param);

}
